package com.zerui.manager.web.cmd;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author liushaohua
 * @title: OpenPlanAddCmd
 * @description:
 * @date 2023/9/1 17:46
 */
@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OpenPlanDeviceAddCmd {

	@ApiModelProperty("开门计划id")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@NotNull(message = "开门计划id不能为空")
	private Long planId;

	@ApiModelProperty("门禁设备id")
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	@NotEmpty(message = "门禁设备id不能为空")
	private List<Long> deviceIds;

}
